@import "./reset.css";

html, body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* General */

.container {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1200px;
}

.section {
    padding: 70px 0;
}

.title-1 {
    margin-bottom: 60px;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.3;
    color: #030433;
    text-align: center;
}

.title-2 {
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

/* Nav */

.nav {
    padding: 20px 0;
    border-bottom: 1px solid #a08383;
    background-color: #070d21;
    color: #efebeb;
    letter-spacing: normal;
}

.nav__projects {
    padding: 20px 0;
    border-bottom: 1px solid #a08383;
    background-color: #070d21;
    color: #efebeb;
    letter-spacing: normal;
}

.nav-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    row-gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.nav-row__projects {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    row-gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.logo {
    margin-right: auto;
    font-size: 24px;
    font-family: 'Freeman', sans-serif;
}

.logo strong {
    font-weight: 700;
}

.nav-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    row-gap: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
    column-gap: 40px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Freeman', sans-serif;
}

.nav-list__link {
    -webkit-transition: opacity .2s ease-in;
    -o-transition: opacity .2s ease-in;
    transition: opacity .2s ease-in;
}

.nav-list__link:focus {
    opacity: 0.5;
    border-bottom: 1px solid #ffffff;
}
.nav-list__link:hover {
    opacity: 0.5;
    border-bottom: 1px solid #ffffff;
}
.nav-list__link:active {
    opacity: 0.5;
    border-bottom: 1px solid #ffffff;
}


/* Mobile navigation */
.nav__mobile {
    display: none;
    background-color: #3f1e02;
    opacity: .7;
    color: #ffffff;
    padding: 25px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* burger menu */
.header__burger-btn {
    position: relative;
    /*width: 40px;*/
    height: 40px;
    border: none;
    z-index: 2;
}

.header__burger-btn span {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    -webkit-transition: -webkit-transform .3s;
    transition: -webkit-transform .3s;
    -o-transition: transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
}

.header__burger-btn span:nth-of-type(2) {
    top: calc(50% - 10px);
}

.header__burger-btn span:nth-of-type(3) {
    top: calc(50% + 10px);
}

.header__burger-btn li {
    list-style-type: none;
}

.header__burger-btn.active span:first-of-type {
    -webkit-transform: translateX(-500%);
    -ms-transform: translateX(-500%);
    transform: translateX(-500%);
}

.header__burger-btn.active span:nth-of-type(2) {
    top: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}

.header__burger-btn.active span:nth-of-type(3) {
    top: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    -ms-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.header__burger-btn {
    display: none;
    padding: 25px;
}

.nav-list__item-mobile:not(:last-child) {
    margin-bottom: 25px;
}

.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

/* Header */
.hero {
    padding: 10px 0;
    min-height: 695px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #efebeb;
    background-image: url("../img/hero-image.jpeg");
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    color: #dbe6d5;
    text-align: center;
}

.hero__wrapper {
    padding: 0 15px;
}

.hero__title {
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
}

.hero__title strong {
    font-size: 60px;
    font-weight: 700;
}

.hero__title em {
    font-style: normal;
    color: #5cf123;
}

.hero__text {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.333;
}

.hero__text p + p{
    margin-top: 0.5em;
}
/* Btn outline */
.btn-outline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 10px;
    -moz-column-gap: 10px;
    column-gap: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 48px;
    padding: 12px 20px;
    border-radius: 5px;
    border: 1px solid #ce6904;
    -webkit-box-shadow:  0 3px 15px #000;
    box-shadow:  0 3px 15px #000;
    -webkit-transition: color 0.2s ease-in;
    -o-transition: color 0.2s ease-in;
    transition: color 0.2s ease-in;
}

.btn-outline:hover {
    color: #ce6904;
}
.btn-outline:focus {
    color: #ce6904;
}

/* Projects  */

.projects {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    row-gap: 30px;
}

.project {
    max-width: 370px;
    background-color: #dedee8;
    -webkit-box-shadow:  0 5px 20px #000;
    box-shadow:  0 5px 20px #000;
    border-radius: 10px;
}
.project:hover {
    opacity: 0.7;
}
.project:focus {
    opacity: 0.7;
}

.project__img {
    border-radius: 10px;
}

.project__title {
    padding: 15px 20px 25px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: #333;
}

/* Project details */

.project-details {
    margin: 0 auto;
    max-width: 865px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

.project-details__cover {
    max-width: 100%;
    margin-bottom: 40px;
    -webkit-box-shadow:  0 5px 20px #000;
    box-shadow:  0 5px 20px #000;
    border-radius: 10px;
}


.project-details__desc {
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
}

/* Content list */
.content-list {
    margin: 0 auto;
    max-width: 570px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    row-gap: 40px;
    text-align: center;
}

.content-list a {
    color: #0c04ce;
}

.content-list__item {
    font-size: 18px;
    line-height: 1.5;
}

.content-list__item p + p {
    margin-top: 0.5em;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 60px 0 50px;
    background-color: #070d21;
    color: #ffffff;
}

.footer__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    row-gap: 27px;
}

.social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.copyright {
    font-size: 16px;
}

.copyright p + p {
    margin-top: 0.5em;
}

.social__item:focus path {
    fill: #808280;
}
.social__item:hover path {
    fill: #808280;
}
.social__item:active path {
    fill: #808280;
}
@media (max-width: 820px) {
    /* Header */
    .nav {
        display: none;
    }
    .header__burger-btn {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
}

@media (max-width: 620px) {

    /* Header  */

    .header {
        min-height: unset;
    }

    .header__title {
        font-size: 30px;
    }

    .header__title strong {
        font-size: 40px;
    }

    /* Nav */

    .nav-row {
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }

    /* General */

    .section {
        padding: 40px 0;
    }

    .title-1 {
        margin-bottom: 30px;
        font-size: 40px;
    }

    .title-2 {
        margin-bottom: 10px;
        font-size: 30px;
    }

    /* Projects */

    .project__title {
        font-size: 22px;
    }

    /* Project page */

    .project-details__desc {
        margin-bottom: 20px;
        font-size: 22px;
    }

    /* Content List */

    .content-list {
        row-gap: 20px;
    }

    .content-list__item {
        font-size: 16px;
    }

    /* Footer */

    .footer {
        padding: 40px 0 30px;
    }

    .footer__wrapper {
        row-gap: 20px;
    }

    /* Social */

    .social {
        -webkit-column-gap: 20px;
        -moz-column-gap: 20px;
        column-gap: 20px;
    }

    .social__item {
        width: 28px;
    }
}

